import { pubRequire } from '@utils/public'
const baseUrl = '/homes/plagiarisms'
// 获取列表
export function getSearchList(params, callBack, errBack) {
  return pubRequire('get', `${baseUrl}`, params, callBack, errBack)
}
// 投诉单个
export function complainSingleRequest(complainId, params, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/${complainId}/handle`,
    params,
    callBack,
    errBack
  )
}
// 投诉多个
export function complainMultRequest(params, callBack, errBack) {
  return pubRequire('put', `${baseUrl}/handle`, params, callBack, errBack)
}
// 获取详情
export function getDetailRequest(id, params, callBack, errBack) {
  return pubRequire(
    'get',
    `/homes/${id}/plagiarisms`,
    params,
    callBack,
    errBack
  )
}
// 标注疑
export function tagDoubtRequest(id, callBack, errBack) {
  return pubRequire('put', `${baseUrl}/${id}/doubt`, '', callBack, errBack)
}
// 取消疑
export function cancelDoubtRequest(id, callBack, errBack) {
  return pubRequire('put', `${baseUrl}/${id}/cancel`, '', callBack, errBack)
}
